Skip to content

fix: added resize behaviour to the textarea#467

Open
SikindarMirza-p44 wants to merge 2 commits intomainfrom
DES-565
Open

fix: added resize behaviour to the textarea#467
SikindarMirza-p44 wants to merge 2 commits intomainfrom
DES-565

Conversation

@SikindarMirza-p44
Copy link
Contributor

@SikindarMirza-p44 SikindarMirza-p44 commented Sep 21, 2023

Closes #

📝 Description

Add a brief description

Screenshots

Please provide screenshots for any visual changes

Merge checklist

  • Added/updated tests
  • Added changeset

@SikindarMirza-p44 SikindarMirza-p44 requested a review from a team as a code owner September 21, 2023 07:51
@changeset-bot
Copy link

changeset-bot bot commented Sep 21, 2023

🦋 Changeset detected

Latest commit: fa58534

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@project44-manifest/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

export const useStyles = css({
'.manifest-textfield-base__input': {
resize: 'both',
minHeight: pxToRem(56),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may break the UX for existing TextArea usages which are not expecting this.
If you want to have it in manifest, it's better to make it as configured prop - resize?: 'none' | 'vertical' | 'horizontal' | 'both' defaults to none. or just override the prop in place where you need that with styled function or inline override like this: <TextArea css={{ textarea: { resize: 'both' } }} />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants